﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<UnfriendlyFire.Models.WeaponType>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Create</h2>
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <table>
        <tr>
            <td class="editor-label">
                <%: Html.LabelFor(model => model.Name) %>
            </td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </td>
        </tr>
        <tr>
            <td class="editor-label">
                <%: Html.LabelFor(model => model.Description) %>
            </td>
            <td class="editor-field">
                <%: Html.TextAreaFor(model => model.Description) %>
                <%: Html.ValidationMessageFor(model => model.Description) %>
            </td>
        </tr>
        <tr>
            <td class="editor-label">
                <%: Html.LabelFor(model => model.Icon) %>
            </td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Icon) %>
                <%: Html.ValidationMessageFor(model => model.Icon) %>
            </td>
        </tr>
        <tr>
            <td class="editor-label">
                <%: Html.LabelFor(model => model.Image) %>
            </td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Image) %>
                <%: Html.ValidationMessageFor(model => model.Image) %>
            </td>
        </tr>
        <tr>
            <td class="editor-label">
                <%: Html.LabelFor(model => model.Damage) %>
            </td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Damage) %>
                <%: Html.ValidationMessageFor(model => model.Damage) %>
            </td>
        </tr>
        <tr>
            <td class="editor-label">
                <%: Html.LabelFor(model => model.Speed) %>
            </td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Speed) %>
                <%: Html.ValidationMessageFor(model => model.Speed) %>
            </td>
        </tr>
        <tr>
            <td class="editor-label">
                <%: Html.LabelFor(model => model.Range) %>
            </td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Range) %>
                <%: Html.ValidationMessageFor(model => model.Range) %>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="Create" />
            </td>
        </tr>
    </table>
    <% } %>
    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
